(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <stdio.h>
int ungetc()
SYNOPSIS
int c
FILE * stream

FUNCTION
Puch the character c character back into the stream.

INPUTS
c
Put this character back into the stream. The next read will return this character. If you push back more than one character, then they will be returned in reverse order. The function gurantees that one character can be pushed back but no more. It is possible to push the EOF character back into the stream.
stream
Read from this stream
RESULT
c or EOF on error.

NOTES
EXAMPLE
BUGS
SEE ALSO
fgetc(), getc(), fputc(), putc()
INTERNALS
HISTORY
28.01.1997 digulla
Implemented scanf() functions
28.01.1997 digulla
New function